-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-12997 Specific exception thrown when trying to @JoinFormula along with @OneToMany #3363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...nate-core/src/test/java/org/hibernate/test/annotations/formula/JoinFormulaWithOneToMany.java
Outdated
Show resolved
Hide resolved
|
Updated the commit to match @NathanQingyangXu's suggestion. |
I still don't think you correctly understand the usage. It is sort of customized foreign key. In your testing case, I failed to see the point to use it. There is no customization necessity here. It is simply a common parent child relationship. If you studied the user guide link I provided above, you would gain a better understanding of its usage. |
This is a simplified case, but let's say I want to make a more complex |
Yeah, but then there would not be testing failure any more. |
I don't get what are you saying. This faliure occurs whatever you put in the custom |
I don't know why but the indentation was messed up. I mannually fixed it.
Added test with this expected faliure in order to track it and fix it at some point.
Edit: Now the expected faliure is the custom exception.